{include file="public/header" /}

<form method="get" action="{:url('user_list')}" novalidate="true">
	<section class="panel panel-default search-from">
		<header class="panel-header">
			<div class="title"><i class="icon-arrow-down-solid"></i>查询条件</div>
		</header>
		<div class="panel-body">
			<div class="col-2 col-xd">
				<div class="form-group">
					<select name="send_type">
						<option value="">全部性别</option>
						{php}$type_list = get_type_desc_list('sex_desc');{/php}
						{volist name="type_list" id="rs"}
							<option value="{$rs['val']}" {eq name="rs['val']" value="$send_type"}selected{/eq}>{$rs['name']}</option>
						{/volist}
					</select>
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="nickname" value="{$nickname}" placeholder="昵称">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="province" value="{$province}" placeholder="省份">
				</div>
			</div>
			<div class="col-2 col-xd">
				<div class="form-group">
					<input type="text" name="city" value="{$city}" placeholder="城市">
				</div>
			</div>
			<div class="form-group-submit">
				<button type="submit" class="btn btn-info"><i class="icon-search"></i>查询</button>
			</div>
		</div>
	</section>
</form>

<table class="data-list">
	<tbody>
		<tr>
			<th width="70">编号</th>
			<th>头像</th>
			<th>昵称</th>
			<th>openid</th>
			<th>性别</th>
			<th>国家</th>
			<th>省份</th>
			<th>城市</th>
			<th>创建时间</th>
		</tr>
		{volist name="list" id="rs"}
			<tr class="data-{$rs['wx_uid']}">
				<td>{$rs['wx_uid']}</td>
				<td><a href="{$rs['headimgurl']}.jpg" class="view_big_pic"><img src="{$rs['headimgurl']}" width="40" height="40"></a></td>
				<td>{$rs['nickname']}</td>
				<td>{$rs['openid']}</td>
				<td>{:get_type_desc($rs['sex'], 'sex_desc')}</td>
				<td>{$rs['country']}</td>
				<td>{$rs['province']}</td>
				<td>{$rs['city']}</td>
				<td>{:date('Y-m-d H:i:s', $rs['create_time'])}</td>
			</tr>
		{/volist}
	</tbody>
</table>

<div class="opt-page-box">
	{$page}
</div>

{include file="public/footer" /}